package com.hashnode.mapper;

import com.hashnode.model.Account;
//不能用此，切记
//import feign.Param;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

public interface AccountMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Account record);

    int insertSelective(Account record);

    Account selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Account record);

    int updateByPrimaryKey(Account record);

    /**
     * 扣减账户余额
     */
    void decrease(@Param("id") Long id, @Param("money") Long money);

}